import { createSlice } from "@reduxjs/toolkit";

export const TickpresonSlice = createSlice({
    // 创建切片
  name: "Tickpreson",
  initialState: {
    addTick: [
      {
        id: "1",
        name: "是多少",
        code: "8464654984989849849",
        state: false,
      },
      {
        id: "2",
        name: "很纠结",
        code: "45343453453453453453",
        state: false,
      },
      {
        id: "3",
        name: "个会个",
        code: "643434534534534534",
        state: false,
      },
      {
        id: "4",
        name: "斯蒂芬",
        code: "243434533734537527",
        state: false,
      },
    ],
  },
  reducers: {
    addPreson(state,{payload}){
        
    }
  },
});

// Action creators are generated for each case reducer function
export const { addPreson } = TickpresonSlice.actions;

export default TickpresonSlice.reducer;
